// svg插件
import 'virtual:svg-icons-register'
// 引入自定义插件对象，注册整个项目的全局组件
import globalComponent from './components';
//引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//暗黑模式需要的样式
import 'element-plus/theme-chalk/dark/css-vars.css'
//引入路由
import router from './router'

import { createApp } from 'vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import App from './App.vue'
const app = createApp(App)
//安装element-plus插件
app.use(ElementPlus, {
    locale: zhCn, //element-plus国际化配置
  })
app.use(Antd)

app.use(router)
// 在这里使用 globalComponent
app.use(globalComponent)

app.mount('#app')